<?php include_once './application/views/sys_admin/common/header.php';  ?>
<div class=" definewidth m20">
	<form  method="post" id="consetForm" name="consetForm">
		<table class="table table-bordered table-hover m10">
		 <tr>
	        <td class="tableleft">名称</td>
	        <td><input type="text" name="title" id="title" size="50"  value="" /> </td>
	   	</tr>
	   	<tr>
	        <td class="tableleft">上传等级图片</td>
	        <td><input type="file" name="thumbnail" id="thumbnail" /></td>
	   	</tr>
	   	<tr>
	        <td class="tableleft">等级</td>
	        <td><input type="text" name="rank" id="rank" size="50"  value="" /></td>
	   	</tr>
	   	<tr>
	        <td class="tableleft">等级描述</td>
	        <td><input type="text" name="content" id="rank" size="50"  value="" /> </td>
	   	</tr>
	   	<tr>
	        <td class="tableleft"></td>
	        <td> <button type="button" class="btn btn-success"  onclick="consetSubmit();" >提交</button> </td>
	   	</tr>
	   </table>
	</form>

</div>
<script type="text/javascript">
function consetSubmit(){
	var options = {
		url : '/sys_admin/conset/add_credit/',
		dataType: "json",
		type:"post",
		success : function(ret) {
			if(ret.msg=='1'){
				alert("操作成功");
				window.location.href ='/sys_admin/conset/zhs_credit';
			}else{
				alert(ret.msg);
			}
			
		}
	};
	$("#consetForm").ajaxSubmit(options);
	return false;
}
</script>
<div id="dialog" title="系统提示" style="display:none"><p id="msg" style="text-align:center"></p></div>
